package com.qn.wechat.dao.entity;


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 *
 * @author   2018-9-27
 */
@Entity
@Table(name="sb_promote")
public class SBPromoteEntity {

    /**
     *
     */
    @Id
    @Column(name="Id",nullable=false,length=50)
    private String id;

    /**
     *
     */
    @Column(name="WId")
    private Integer wid;

    /**
     *
     */
    @Column(name="PrmName")
    private String prmname;

    /**
     *
     */
    @Column(name="PrmDesc")
    private String prmdesc;

    /**
     *
     */
    @Column(name="StartTime")
    private Date starttime;

    /**
     *
     */
    @Column(name="EndTime")
    private Date endtime;

    /**
     *
     */
    @Column(name="LimitCount")
    private Integer limitcount;

    /**
     * 基础数量（伪造）
     */
    @Column(name="BaseAlreadyCount")
    private Integer basealreadycount;

    /**
     *
     */
    @Column(name="AlreadyCount")
    private Integer alreadycount;

    /**
     *
     */
    @Column(name="TargetCount")
    private Integer targetcount;

    /**
     *
     */
    @Column(name="CreateTime")
    private Date createtime;

    /**
     *
     */
    @Column(name="Creator")
    private String creator;

    /**
     *
     */
    @Column(name="CreatorCode")
    private String creatorcode;

    /**
     *
     */
    @Column(name="ProductImageUrl")
    private String productimageurl;

    /**
     *
     */
    @Column(name="ProductDetailUrl")
    private String productdetailurl;

    @Column(name="Remark")
    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(String id){
        this.id=id;
    }

    /**
     * 获取
     * @return Id -
     */
    public String getId(){
        return this.id;
    }

    /**
     * 设置
     * @param wid
     */
    public void setWid(Integer wid){
        this.wid=wid;
    }

    /**
     * 获取
     * @return WId -
     */
    public Integer getWid(){
        return this.wid;
    }

    /**
     * 设置
     * @param prmname
     */
    public void setPrmname(String prmname){
        this.prmname=prmname;
    }

    /**
     * 获取
     * @return PrmName -
     */
    public String getPrmname(){
        return this.prmname;
    }

    /**
     * 设置
     * @param prmdesc
     */
    public void setPrmdesc(String prmdesc){
        this.prmdesc=prmdesc;
    }

    /**
     * 获取
     * @return PrmDesc -
     */
    public String getPrmdesc(){
        return this.prmdesc;
    }

    /**
     * 设置
     * @param starttime
     */
    public void setStarttime(Date starttime){
        this.starttime=starttime;
    }

    /**
     * 获取
     * @return StartTime -
     */
    public Date getStarttime(){
        return this.starttime;
    }

    /**
     * 设置
     * @param endtime
     */
    public void setEndtime(Date endtime){
        this.endtime=endtime;
    }

    /**
     * 获取
     * @return EndTime -
     */
    public Date getEndtime(){
        return this.endtime;
    }

    /**
     * 设置
     * @param limitcount
     */
    public void setLimitcount(Integer limitcount){
        this.limitcount=limitcount;
    }

    /**
     * 获取
     * @return LimitCount -
     */
    public Integer getLimitcount(){
        return this.limitcount;
    }

    /**
     * 设置基础数量（伪造）
     * @param basealreadycount 基础数量（伪造）
     */
    public void setBasealreadycount(Integer basealreadycount){
        this.basealreadycount=basealreadycount;
    }

    /**
     * 获取基础数量（伪造）
     * @return BaseAlreadyCount - 基础数量（伪造）
     */
    public Integer getBasealreadycount(){
        return this.basealreadycount;
    }

    /**
     * 设置
     * @param alreadycount
     */
    public void setAlreadycount(Integer alreadycount){
        this.alreadycount=alreadycount;
    }

    /**
     * 获取
     * @return AlreadyCount -
     */
    public Integer getAlreadycount(){
        return this.alreadycount;
    }

    /**
     * 设置
     * @param targetcount
     */
    public void setTargetcount(Integer targetcount){
        this.targetcount=targetcount;
    }

    /**
     * 获取
     * @return TargetCount -
     */
    public Integer getTargetcount(){
        return this.targetcount;
    }

    /**
     * 设置
     * @param createtime
     */
    public void setCreatetime(Date createtime){
        this.createtime=createtime;
    }

    /**
     * 获取
     * @return CreateTime -
     */
    public Date getCreatetime(){
        return this.createtime;
    }

    /**
     * 设置
     * @param creator
     */
    public void setCreator(String creator){
        this.creator=creator;
    }

    /**
     * 获取
     * @return Creator -
     */
    public String getCreator(){
        return this.creator;
    }

    /**
     * 设置
     * @param creatorcode
     */
    public void setCreatorcode(String creatorcode){
        this.creatorcode=creatorcode;
    }

    /**
     * 获取
     * @return CreatorCode -
     */
    public String getCreatorcode(){
        return this.creatorcode;
    }

    /**
     * 设置
     * @param productimageurl
     */
    public void setProductimageurl(String productimageurl){
        this.productimageurl=productimageurl;
    }

    /**
     * 获取
     * @return ProductImageUrl -
     */
    public String getProductimageurl(){
        return this.productimageurl;
    }

    /**
     * 设置
     * @param productdetailurl
     */
    public void setProductdetailurl(String productdetailurl){
        this.productdetailurl=productdetailurl;
    }

    /**
     * 获取
     * @return ProductDetailUrl -
     */
    public String getProductdetailurl(){
        return this.productdetailurl;
    }


    @Override
    public String toString(){
        StringBuilder sb = new StringBuilder();
        sb.append("SbPromote[");
        sb.append("id=");
        sb.append(id);
        sb.append(",wid=");
        sb.append(wid);
        sb.append(",prmname=");
        sb.append(prmname);
        sb.append(",prmdesc=");
        sb.append(prmdesc);
        sb.append(",starttime=");
        sb.append(starttime);
        sb.append(",endtime=");
        sb.append(endtime);
        sb.append(",limitcount=");
        sb.append(limitcount);
        sb.append(",basealreadycount=");
        sb.append(basealreadycount);
        sb.append(",alreadycount=");
        sb.append(alreadycount);
        sb.append(",targetcount=");
        sb.append(targetcount);
        sb.append(",createtime=");
        sb.append(createtime);
        sb.append(",creator=");
        sb.append(creator);
        sb.append(",creatorcode=");
        sb.append(creatorcode);
        sb.append(",productimageurl=");
        sb.append(productimageurl);
        sb.append(",productdetailurl=");
        sb.append(productdetailurl);
        sb.append("]");
        return sb.toString();
    }
}